﻿clc,clear
close all

disp("Solve linear equation");

%  the equation is
%  9.5*x -5*x^3 = 10
%  x^2 - 12.5*x^3=-2
%  5*x - 12*x^2 + 20.5*x^3=0

A = [9.5,0,-5;0,2,-12.5;-5,-12,20.5];
B = [10; -2; 0];

x = inv(A)*B
